package com.ketai.appinfo.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ketai.appinfo.mapper.AppVersionMapper;
import com.ketai.appinfo.pojo.AppVersion;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
*@Author 刘玉琼
*@Time 2020-11-03
*
*/
@Service
@Transactional
public class AppVersionService extends ServiceImpl<AppVersionMapper,AppVersion> {

    @Resource
    private AppVersionMapper appVersionMapper;

    /**
     * 新增版本信息
     * @param appVersion
     * @return
     */
    public Integer insert(AppVersion appVersion) {
        return appVersionMapper.insert(appVersion);
    }
    /**
     * 根据id查询版本信息
     */
    public List<AppVersion> selectByAppId(Integer devId) {
        return appVersionMapper.devVisionSelectById(devId);
    }

}
